package com.jy.adscm.hcPlan.service;

import com.jy.adscm.exception.AdscmSystemException;
import com.jy.adscm.hcPlan.bean.HcPlanMaterielPrice;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 物料采购财务报表 服务类
 * </p>
 *
 * @author yyy
 * @since 2018-08-24
 */
public interface HcPlanMaterielPriceService extends IService<HcPlanMaterielPrice> {

    /**
     * 根据并单ID，构造财务数据
     * @param merge_id
     * @return
     */
    public void loadMaterielPrice(String merge_id) throws AdscmSystemException;

    /**
     * 根据并单ID，获取这个采购日期所在的周的预计消费金额
     * @param merge_id
     * @return
     * @throws AdscmSystemException
     */
    public Map<String ,Object> getTheWeekPlanPrice(String merge_id) throws AdscmSystemException;
    /**
     * 根据并单ID集合，获取这个采购日期所在的周的预计消费金额
     * @param mergeIds
     * @return
     * @throws AdscmSystemException
     */
    public List<Map<String ,Object>> getTheWeekPlanPrice(String[] mergeIds) throws AdscmSystemException;
    /**
     *  提交财务报表审核
     * @param mergeIds
     * @param audit_status
     * @return
     * @throws AdscmSystemException
     */
    public void submitAudit(String[] mergeIds,Integer audit_status) throws AdscmSystemException;

}
